package lhdx8;

public class Teacher {
    private String name;
    private int age;
    private int teachingAge;
    private String gender;
    private String giveLession;
    public Teacher(){

    }
    public Teacher(String name,int age,int teachingAge,String gender,String giveLession){
        this.name=name;
        this.age=age;
        this.teachingAge=teachingAge;
        this.gender=gender;
        this.giveLession=giveLession;
    }
    public void print(){
        System.out.println("我是："+name+"性别:"+gender+",今年"+age+"岁。");
        System.out.println("我是教"+giveLession+"的，"+"拥有："+teachingAge+"年教龄。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeachingAge() {
        return teachingAge;
    }

    public void setTeachingAge(int teachingAge) {
        this.teachingAge = teachingAge;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGiveLession() {
        return giveLession;
    }

    public void setGiveLession(String giveLession) {
        this.giveLession = giveLession;
    }
}
